package com.gao.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
@Data
@Table(name="tb_user")
public class User {
    @Id
    private Long id;
    private String username;
    private String password;
    private String name;
    private Integer age;
    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String note;
    private Date created;
    private Date updated;


}
